//
//  RecommendDetailScrollView.h
//  Happy Kitchen
//
//  Created by mac_chen on 15/3/7.
//  Copyright (c) 2015年 mac_chen. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RecommendDetailModel.h"
#import "UIImageView+WebCache.h"

@interface RecommendDetailScrollView : UIScrollView

@property(nonatomic, strong)UILabel *fittingRestrictionLabel;//原料
@property(nonatomic, strong)UILabel *methodLabel;//调料
@property(nonatomic, strong)UILabel *nameLabel;//名称
@property(nonatomic, strong)UILabel *vegetable_idLabel;
@property(nonatomic, strong)UILabel *describeLabel;//步骤描述
@property(nonatomic, strong)UIImageView *imagePathThImageView;//图片
@property(nonatomic, strong)UILabel *timeLengthLabel;//烹饪时间
@property(nonatomic, strong)UIImageView *imagePathImageView;//步骤图片
@property(nonatomic, strong)RecommendDetailModel *recommendDM;


//自定义方法
- (void)setRecommendDetail:(RecommendDetailModel *)recommendDetail;
//重写初始化
- (instancetype)initWithFrame:(CGRect)frame array:(NSMutableArray *)array recommendDetail:(RecommendDetailModel *)recommendDetail;
//自定义高度
+(CGFloat)heightForfittingRestriction:(NSString *)text;
+(CGFloat)heightFormethodLabel:(NSString *)text;

//自定义方法
- (void)createSub:(NSMutableArray *)array recommendDetail:(RecommendDetailModel *)recommendDetail;
-(void)stepCookarray:(NSMutableArray *)array recommendDetail:(RecommendDetailModel *)recommendDetail;




@end
